package com.example.service.impl;

import com.example.service.MessageServices;
import com.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
public class OrderServiceImpl implements OrderService {
    /**
     * 实现消息发送的实现类
     * */

    @Autowired
    private MessageServices messageServices;

    @Override
    public void order(Map<String,String> map) {
        //模拟一系列的操作
        System.out.println("开始处理订单业务.....");
        //调用消息服务
        messageServices.sendMessage(map);
        System.out.println("处理完了订单业务.....\n");
    }
}
